import request from '@/utils/request'

//统一字典下拉框查询
export function adminDict(params) {
    return request({
        url: `common/v1/adminDict`,
        params
    })
}

//查询支持竞猜赛事列表
export function supportList(params) {
    return request({
        url: `/guess/activity/support/list`,
        method: 'get',
        params
    })
}

//新增支持竞猜赛事
export function addSupport(data) {
    return request({
      url: '/guess/activity/support',
      method: 'post',
      data
    })
}
//修改竞猜活动
export function editSupport(data) {
    return request({
      url: '/guess/activity/support',
      method: 'put',
      data
    })
}
//获取支持竞猜活动赛事
export function supportDetail(id) {
    return request({
        url: `/guess/activity/support/${id}`,
        method: 'get',
    })
}
//获取赛事比分
export function supportScore(id) {
    return request({
        url: `/guess/activity/support/score/${id}`,
        method: 'get',
    })
}
//修改比分
export function editModify(data) {
    return request({
      url: '/guess/activity/support/score/modify',
      method: 'put',
      data
    })
}
//比赛结束
export function endModify(data) {
    return request({
      url: '/guess/activity/support/end',
      method: 'put',
      data
    })
}
//截止下注
export function stopDeadline(id) {
    return request({
      url: `/guess/activity/support/deadline/stop/${id}`,
      method: 'put',
    })
}
//恢复下注
export function resumeDeadline(data) {
    return request({
      url: `/guess/activity/support/deadline/resume`,
      method: 'put',
      data
    })
}
//发放奖励
export function supportAmount(id) {
    return request({
      url: `/guess/activity/support/amount/issue/${id}`,
      method: 'put',
    })
}
//删除支持竞猜赛事
export function deleteSupport(id) {
    return request({
      url: '/guess/activity/support/' + id,
      method: 'delete'
    })
}
//前端隐藏-显示竞猜赛事
export function supportShow(data) {
    return request({
      url: `/guess/activity/support/show`,
      method: 'put',
      data
    })
}
//导入支持竞猜赛事
export function importSupport(data) {
    return request({
      url: '/guess/activity/support/import',
      method: 'post',
      data
    })
}
//支持竞猜投注明细列表
export function recordList(params) {
    return request({
        url: `/guess/activity/support/bet/record/list`,
        method: 'get',
        params
    })
}
//支持竞猜排行列表
export function rankList(params) {
    return request({
        url: `/guess/activity/support/rank/list`,
        method: 'get',
        params
    })
}




